package cn.jslancer.service.impl;

import cn.jslancer.domain.Category;
import cn.jslancer.repository.CategoryRepository;
import cn.jslancer.service.BaseService;
import cn.jslancer.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Service;

/**
 * @author jslancer
 * @date 2017/11/7
 */
@Service
public class CategoryServiceImpl extends BaseServiceImpl<Category, String> implements CategoryService {

    @Autowired
    private CategoryRepository categoryRepository;

    @Override
    public MongoRepository<Category, String> getMongoRepository() {
        return categoryRepository;
    }
}
